import 'package:flutter/material.dart';

import './constants.dart' show AppColors, Routes;
import './home/home_screen.dart';
import './conversation/conversation_detail_page.dart';

void main() {
  runApp(MaterialApp(
    title: '翼信',
    debugShowCheckedModeBanner: false,
    theme: ThemeData.light().copyWith(
      // ios风格的页面风格
      platform: TargetPlatform.iOS,
      primaryColor: Color(AppColors.AppBarColor),
      cardColor: Color(AppColors.AppBarCardBgColor),
    ),
    // 初始路由
    initialRoute: Routes.Home,
    routes: {
      Routes.Home: (context) => HomeScreen(),
      Routes.Conversation: (context) => ConversationDetailPage()
    },
    // home: HomeScreen(),
  ));
}
